package rx.fangyuan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import rx.fangyuan.dao.GetAddressDao;
import rx.fangyuan.pojo.RxAreas;
import rx.fangyuan.pojo.RxCities;
import rx.fangyuan.pojo.RxProvinces;
import rx.fangyuan.service.GetAddressService;

@Service("getAddressService")
public class GetAddressServiceImpl implements GetAddressService{

	@Autowired
	private GetAddressDao getAddressDao;
	
	@Override
	public List<RxProvinces> getProvinces() {
		List<RxProvinces> list=getAddressDao.getProvinces();
		return list;
	}

	@Override
	public List<RxCities> getCities(String provinceId) {
		List<RxCities> list=getAddressDao.getCities(provinceId);
		return list;
	}

	@Override
	public List<RxAreas> getAreas(String cityId) {
		List<RxAreas> list=getAddressDao.getAreas(cityId);
		return list;
	}

}
